package com.eduction.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eduction.modules.system.dao.InterviewAnalyseRepository;
import com.eduction.modules.system.entity.InterviewAnalyse;
import com.eduction.service.InterviewAnalyseService;

@Service
public class InterviewAnalyseServiceImpl implements InterviewAnalyseService {
	@Autowired
	private InterviewAnalyseRepository interviewAnalyseRepository;
	@Override
	public String saveInterviewAnalyse(InterviewAnalyse i) {
		return this.interviewAnalyseRepository.saveInterviewAnalyse(i);
	}

	@Override
	public InterviewAnalyse queryInterviewAnalyseById(String id,String eid,String sid) throws SQLException {
		return this.interviewAnalyseRepository.queryInterviewAnalyseById(id,eid,sid);
	}

	@Override
	public InterviewAnalyse queryInterviewAnalyseById(String id,String sid) throws SQLException {
		return this.interviewAnalyseRepository.queryInterviewAnalyseById(id,sid);
	}

	@Override
	public List<InterviewAnalyse> queryIAsByExpert(String expertId) throws SQLException {
		return this.interviewAnalyseRepository.queryIAsByExpert(expertId);
	}

	@Override
	public InterviewAnalyse findById(String pId){
		return this.interviewAnalyseRepository.findById(pId);
	}

	@Override
	public void deleteByPid(String pid){
		this.interviewAnalyseRepository.deleteByPid(pid);
	}
	@Override
	public void deleteInterviewAnalyseMapState(String sign, String schoolId, String expertId)  throws SQLException{

		this.interviewAnalyseRepository.deleteInterviewAnalyseMapState(sign,schoolId,expertId);
	}

	
}
